@import url("../../index.less");

.overviewPage {
  min-width: 1131px;
  overflow: scroll;

  &_left,
  &_right {
    width: 50%;
    min-width: 532px;
    // height: calc(100vh - 58px);
  }
}

.boxBorder {
  position: relative;
  min-width: 532px;
  width: 100%;
  border: 1px solid #E4E4E4;
  border-radius: 4px;
  background: #EFF2F7;
}

.title {
  width: 100%;
  padding-left: 20px;
  padding-top: 12px;
  padding-bottom: 3px;
  background: #fff;
  border-radius: 4px 4px 0 0;
}

.borderBgc {
  height: 106px;
}

.compare {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 20px;
  background: #fff;
  padding-bottom: 8px;

  &_text {
    height: 17px;
    background: #FDEFE3;
    padding-left: 10px;
    padding-right: 11px;
    border-left: solid 2px #EA6A2D;
    color: #E64A00;
    font-size: 12px;
    line-height: 17px;
    max-width: calc(100% - 120px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    >span {
      position: relative;
      top: -1px
    }
  }

  &_button {
    padding-left: 9px;
    margin-right: 8px;

    &::before {
      position: relative;
      display: inline-block;
      left: -8px;
      content: '';
      width: 1px;
      height: 14px;
      background-color: #E5E5E5;
    }
  }
}

.footer {
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 34px;
  width: 100%;
  padding-left: 4px;
  background: #EFF2F7;
  border-radius: 0 0 4px 4px;

  &_date {
    color: #35425E;

    >span {
      font-size: 12px;

      &:nth-child(2) {
        margin-left: 4px;
      }
    }

    span:first-child {
      font-weight: bold;
      margin-left: 12px;

      &::before {
        position: relative;
        content: '';
        display: inline-block;
        width: 1px;
        height: 13px;
        background: #35425e;
        margin-right: 8px;
        margin-left: 4px;
        top: 2px;
      }
    }
  }
}

.chart {
  position: relative;
  height: 296px;
  background: #EFF2F7;
  margin-top: 4px;

  &_title {
    display: inline-block;
    width: 100%;
    font-size: 13px;
    color: #35425E;
    font-weight: bold;
    line-height: 28px;
    padding-left: 16px;
    padding-top: 4px;
    border-radius: 4px 4px 0 0;
    background: #fff;
  }

  &_echarts {
    height: 147px;
    background: #fff;

    >div {
      img {
        width: 120px;
        height: 82px;
      }
    }
  }

  &_table {
    position: relative;
    height: 108px;
    padding-bottom: 8px;

    :global {
      .ant-table-container {
        .ant-table-thead {
          .ant-table-cell {
            transform-origin: right;
            padding-right: 8px;

            &:first-child {
              transform-origin: left;
            }
          }
        }

        .ant-table-tbody {
          .ant-table-row {
            .ant-table-cell {
              padding-right: 8px;
            }
          }
        }

        .ant-table-placeholder {
          >td {
            padding-bottom: 0;

            >div {
              padding: 0 !important;
              margin-top: -7px;

              >div {
                padding: 0 !important;
              }

              img {
                width: 50px;
                height: 34px;

              }

              p {
                font-size: 12px;
                line-height: 16px;
              }
            }
          }
        }
      }
    }
  }
}

.cusTab {
  // margin: 0 8px;

  :global {
    .ant-tabs-nav {
      border-bottom: 1px solid #D6DDEB;
      margin-bottom: 1px;

      .ant-tabs-tab {
        padding: 5px 0;

        .ant-tabs-tab-btn {
          color: #35425E;
          font-size: 12px;
        }
      }

      .ant-tabs-ink-bar {
        background: #3F52B5;
      }

      .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn {
        color: #1F51A4;
        font-weight: bold;
      }

      .ant-tabs-nav-wrap {
        padding-left: 16px;
      }
    }

  }
}

.cusTable {
  margin: 0 8px;

  :global {
    table {
      border-spacing: 0 2px;
    }

    .ant-table-content {
      background: #eff2f7;
    }

    .ant-table-thead {
      .ant-table-cell {
        padding: 0;
        border-bottom: unset;
        background: #eff2f7;
        font-size: 12px;
        color: #35425e;
        font-weight: bold;
        transform: scale(0.83);
        transform-origin: left;
        padding-left: 10px;
        // overflow: hidden;
        // text-overflow: ellipsis;
        white-space: nowrap;

        &::before {
          display: none;
        }
      }
    }

    .ant-table-body {
      overflow-y: overlay !important;
    }

    .ant-table-tbody {
      .ant-table-row {
        background-color: #fff;
        height: 26px;
        min-height: 26px;
        max-height: 26px;

        .ant-table-cell {
          padding: 2px;
          padding-left: 8px;
          border-bottom: unset;
          background: #fff;
          font-size: 12px;
          // transform: scale(0.83);
          color: #35425E;
          white-space: nowrap;

          >span {
            font-size: 12px;
          }
        }

        margin-bottom: 2px;

        .ant-table-cell:nth-child(1) {
          // width: 15%;
          color: #35425e;
          font-weight: bold;
        }

        &:hover {
          background: #EAF1FF !important;

          >td {
            background: #EAF1FF !important;
          }
        }
      }
    }

    // @media screen and (max-width: 1280px) {
    //   .ant-table-container .ant-table-tbody .ant-table-row .ant-table-cell {
    //     padding-right: 0;
    //   }
    // }

    .ant-empty,
    .ant-empty-normal {
      margin: 0;
    }

    .ant-empty-image {
      height: 15px;
      margin-bottom: 0;
    }

    .ant-empty-description {
      transform: scale(.8);
      font-size: 12px;
    }

    .ant-table-empty {
      .ant-table-tbody>tr>td {
        background: #fff;
        padding: 8px;
      }
    }

  }
}

.littleTable {
  :global {
    .ant-table-thead {
      .ant-table-cell {
        padding-left: 0px;

        &:first-child {
          padding-left: 10px;
        }
      }
    }

    .ant-table-tbody {
      .ant-table-row {
        .ant-table-cell {
          padding-left: 0;

          &:first-child {
            padding-left: 10px;
            padding-right: 8px;
          }
        }
      }
    }
  }
}

.eventList {
  position: relative;
  min-width: 532px;
  margin-top: 4px;
  padding-top: 4px;
  background: #EFF2F7;
  border-radius: 4px;
  padding-bottom: 4px;

  &_title {
    display: block;
    color: #35425E;
    font-size: 13px;
    margin-left: 16px;
    line-height: 28px;
    font-weight: bold;
  }

  &_tab {
    // margin: 0 9px;

    :global {
      .ant-tabs-extra-content {
        width: calc(100% - 120px);
      }
    }
  }

  &_table {
    :global {

      .ant-table-body {
        table {
          border-spacing: 0 4px;
          margin-top: -7px;
        }
      }

      .ant-table {
        background: transparent;
      }

      .ant-table-thead>tr> {
        .ant-table-cell-scrollbar {
          box-shadow: unset;
        }
      }

      .ant-table-thead>tr>th:not(:last-child):not(.ant-table-selection-column):not(.ant-table-row-expand-icon-cell):not([colspan])::before {
        width: 0;
      }

      .ant-table-tbody {
        .ant-table-row {
          height: 26px;
          min-height: 26px;
          max-height: 26px;

          .ant-table-cell {
            font-size: 12px;
            color: #35425E;

            &:last-child {
              padding-right: 8px;
            }
          }

          .ant-table-cell:nth-child(1) {
            color: #35425e;
            font-weight: 400;
          }
        }
      }
    }

    .tooltip-placement-topLeft .ant-tooltip-arrow-content {
      transform: translateY(-12px)
    }
  }
}

.tabSelect {
  display: flex;
  align-items: center;

  &_label {
    width: 61px;
    height: 14px;
    opacity: 0.7;
    .font-bold();
    font-size: 12px;
    color: #35425E;
    margin-right: 4px;
    white-space: nowrap;
    margin-top: -1px;

    &::before {
      position: relative;
      top: 1px;
      content: "";
      display: inline-block;
      width: 1px;
      height: 12px;
      margin-right: 8px;
      background: #D6DDEB;
    }
  }

  &_label2 {
    margin-left: 6px;
    width: 49px;

    &::before {
      display: none;
    }

  }

  :global {
    .ant-select {
      position: relative;
      top: 1px;
      color: #35425E;

      .ant-select-selection-search-input,
      .ant-select-multiple .ant-select-selection-search-mirror {
        height: 22px;
      }

      .ant-select-selection-overflow {
        height: 22px;
      }

      .ant-select-selection-search input {
        color: #35425E;
        font-size: 12px;
      }

      .ant-select-selection-placeholder {
        font-size: 12px;
        color: rgba(74, 87, 116, 0.4)
      }
    }

    .ant-select-multiple {
      width: calc(100% - 58px);

      .ant-select-selector {
        height: 22px;
        border: unset;
        min-width: 162px;
        padding-right: 4px;

        .ant-select-selection-overflow-item {
          margin-top: -2px;
        }

        .ant-select-selection-item {
          height: 16px;
          border-radius: 8px;
          margin: 0;
          margin-right: 4px;
          line-height: 14px;

          .ant-select-selection-item-content {
            font-size: 12px;
            color: #35425E;
          }
        }
      }
    }
  }
}

.dropSelect {
  padding-top: 4px;

  :global {
    .anticon svg {
      font-size: unset;
    }

    .ant-select-tree-title {
      font-size: 12px;
    }

    .ant-select-tree-node-content-wrapper span {
      color: #35425E !important;
      font-size: 12px !important;
    }
  }
}

.tabSelectEvent {
  width: 70%;
  margin-left: 30%;
}

.tabSelect1 {
  width: 45%;

  &_label1 {
    width: 60px;
  }
}

.tabSelect2 {
  width: 55%;

}

.cusSelect {
  width: calc(100% - 62px);

  :global {
    .ant-select-selector {
      height: 22px !important;
      border: unset !important;
    }

    .ant-select-selection-search-input {
      height: 22px !important;
    }

    .ant-select-arrow {
      display: none;
    }

    .ant-select-selection-placeholder,
    .ant-select-selection-item {
      height: 22px !important;
      line-height: 22px !important;
      font-size: 12px;
      padding-right: 0 !important;
    }
  }
}

.dropSelect {
  :global {
    .ant-select-item-option-content {
      font-size: 12px;
    }
  }
}

.review {
  background: #fff;
  margin-left: 3px;
  padding-right: 13px;
  padding-bottom: 11px;
  padding-left: 15px;
  padding-top: 4px;
  display: flex;
  min-height: 106px;
  max-height: 106px;

  &_avatar {
    margin-top: 20px;
    width: 60px;
    height: 60px;
    min-width: 60px;
    margin-right: 16px;
    display: flex;
    border-radius: 50%;
    overflow: hidden;
    justify-content: space-around;
  }

  &_placeholder {
    border-radius: 50%;
    background: #F5F6F8;
  }

  &_right {
    flex-grow: 1;

    &_top {
      display: flex;
      justify-content: space-between;
      height: 28px;
      align-items: center;

      &_left {
        color: #35425E;
        line-height: 18px;

        >span {
          font-size: 12px;
          transform: scale(0.83);
          display: inline-block;
          font-weight: bold;
        }

        >span:nth-child(1) {
          transform-origin: left;
          padding-left: 12px;

          &::before {
            position: relative;
            left: -12px;
            top: 3px;
            content: '';
            width: 5px;
            height: 14px;
            display: inline-block;
            background-color: #E64A00;
          }
        }

        >span:nth-child(2) {
          opacity: 0.7;
          transform-origin: left;
          position: relative;
          left: -11px;
          top: 0px;

        }

        >span:nth-child(3) {
          position: relative;
          left: -8px;

          &::before {
            width: 1.5px;
            height: 14px;
            content: '';
            display: inline-block;
            position: relative;
            background-color: #E5E5E5;
            left: -12px;
            top: 3px;
          }

          cursor: pointer;
          color: #1F51A4;

          >img {
            position: relative;
            top: -1px;
            width: 8.5px;
            height: 10px;
            margin-left: 2px;
          }
        }
      }

      &_right {

        >img {
          position: relative;
          top: -1px;
          cursor: pointer;
          width: 14px;
          height: 14px;
        }
      }
    }

    &_bottom {
      height: calc(100% - 28px);

      >span {
        font-size: 12px;
        color: #35425E;
        line-height: 16px;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
      }
    }
  }

}

// .emptyTable {
//   :global {
//     .ant-table-tbody>tr>td {
//       background: #fff;
//     }
//   }
// }

.cusToolTip {
  :global {
    .ant-tooltip-inner {
      background-color: rgba(65, 69, 81, 0.96);
      color: #fff;
      font-size: 12px;
      // transform: scale(0.83);
    }

    .ant-tooltip-arrow-content {
      --antd-arrow-background-color: rgba(65, 69, 81, 0.96);
      top: -1px
    }
  }
}

.portFolioReview {
  display: flex;

  &_label {
    position: relative;
    top: -1px;
    width: 52px;
    height: 28px;
    line-height: 28px;
    opacity: 0.7;
    margin-right: 8px;
    margin-left: -6px;
    .font-bold();
    font-weight: bold;
    font-size: 13px;
    color: #35425E;
    text-align: justify;
    text-align-last: justify;
    text-justify: inter-ideograph;
    /*兼容ie*/
  }

  >div {
    flex-grow: 1;
  }
}

.skeleton {
  flex-grow: 1;

  >div:not(:first-child) {
    width: 100%;
    height: 12px;
    background: #F5F6F8;
    margin-top: 6px;
  }

  >div:first-child {
    width: 100%;
    display: flex;

    >div {
      height: 12px;
      width: 161px;
      background: #F5F6F8;
      margin-top: 6px;
    }

    >span {
      font-size: 12px;
      transform: scale(0.83);
      transform-origin: left;
      position: relative;
      left: 20px;
      top: 2px;
      font-weight: bold;

      &::before {
        width: 1.5px;
        height: 14px;
        content: '';
        display: inline-block;
        position: relative;
        background-color: #E5E5E5;
        left: -12px;
        top: 3px;
      }

      cursor: pointer;
      color: #1F51A4;

      >img {
        position: relative;
        top: -1px;
        width: 8.5px;
        height: 10px;
        margin-left: 2px;
      }
    }
  }
}

.required {
  &::before {
    content: '*';
    position: relative;
    color: #E64A00;
    right: -6px;
    top: 1px;
  }
}

.content {
  * {
    color: #35425e !important;
  }
}